package cn.ycxy.lbl.pojo.member.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

@ApiModel(value="前台用户微信登录DTO")
@Data
public class UserLoginDTO {

    @ApiModelProperty(value = "微信登录code", name = "code", example = "091qLz0w3Zn0h03ZdK0w3W1KKh4qLz0l", required = true)
    @NotNull(message = "微信code不允许为空！")
    private String code;

    @ApiModelProperty(value = "登录昵称", name = "nickName", example = "aaa", required = true)
    @NotNull(message = "微信昵称不允许为空！")
    private String nickName;

    @ApiModelProperty(value = "微信唯一用户表示id", name = "openid", example = "KHUFsNmYdVuznteoaU4pwgjf")
    private String openid;
    @ApiModelProperty(value = "微信iv", name = "iv", example = "IbO6FsNmYdVuznteoaU4pw==")
    private String iv;
    @ApiModelProperty(value = "微信加密数据 ", name = "encryptedData ", example = "hXV/RQOoAyybMxILLJXm4HZ49P...")
    private String encryptedData ;
    @ApiModelProperty(value = "微信sessionKey ", name = "sessionKey ", example = "f1JcbJdWedxdGpnvNyxLdw==")
    private String sessionKey ;

    @ApiModelProperty(value = "用户微信头像", name = "avatarUrl", example = "https://thirdwx.qlogo.cn/mmopen/...")
    private String avatarUrl;

    @ApiModelProperty(value = "客户端登录ip,后台填写", name = "ip", example = "127.0.0.1", required = false)
    private String ip;

}
